package com.vca.common.model.vca_product;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 商品表
 * </p>
 *
 * @author chenBing
 * @since 2022-11-16
 */
@Data
@TableName("vca_product")
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="VcaProduct对象", description="商品表")
public class VcaProduct implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "商品类型ID")
    private Integer cid;

    @ApiModelProperty(value = "商品类型子集ID，以','分割")
    private String childCids;

    @ApiModelProperty(value = "商品名称")
    private String name;

    @ApiModelProperty(value = "商品英文名称")
    private String nameEn;

    @ApiModelProperty(value = "面值（录入的商品非礼品卡时，不需要填写面值）")
    private BigDecimal faceValue;

    @ApiModelProperty(value = "商品简介")
    private String introduction;

    @ApiModelProperty(value = "商品英文简介")
    private String introductionEn;

    @ApiModelProperty(value = "商品封面图")
    private String coverImage;

    @ApiModelProperty(value = "商品轮播图")
    private String carouselMap;

    @ApiModelProperty(value = "主图视频")
    private String mainPictureVideo;

    @ApiModelProperty(value = "分享海报")
    private String sharePoster;

    @ApiModelProperty(value = "商品图片")
    private String image;

    @ApiModelProperty(value = "商品价格")
    private BigDecimal price;

    @ApiModelProperty(value = "库存")
    private Integer stock;

    @ApiModelProperty(value = "ISBN编号")
    private String isbnCode;

    @ApiModelProperty(value = "规格 0单 1多")
    private Boolean specType;

    @ApiModelProperty(value = "销量")
    private Integer sales;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "状态（0：未上架，1：上架）")
    private Boolean isShow;

    @ApiModelProperty(value = "是否回收站")
    private Integer isRecycle;

    @ApiModelProperty(value = "是否删除")
    private Boolean isDeleted;

    @ApiModelProperty(value = "添加时间")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    @ApiModelProperty(value = "礼品卡编号")
    private String cardNo;

    @ApiModelProperty(value = "选择使用范围 0=课程 1=讲座 2=展览")
    private Integer useAround;

    @ApiModelProperty(value = "使用类型 1=分类卡 2=课程卡/讲座卡/展览卡（取决于使用范围）3=通用卡")
    private Integer useType;

    @ApiModelProperty(value = "所属分类id / 课程id（id以“,”分割）")
    private String primaryKey;

    @ApiModelProperty(value = "有效期")
    @TableField(value = "end_time_day")
    private Integer endTime;

    @ApiModelProperty(value = "主色")
    private String mainColor;

    @ApiModelProperty(value = "第二色")
    private String secondaryColor;

    @ApiModelProperty(value = "第三色")
    private String tertiaryColor;


}
